package com.xckj.cycling.fragment

import com.xckj.cycling.framework.lazyGlobalViewModel
import com.xckj.cycling.view.CWebView
import com.xckj.cycling.viewmodel.MapViewModel

class RankFragment : WebViewFragment() {
    private val viewModel: MapViewModel by lazyGlobalViewModel()

    override fun listenLocation(): Boolean {
        return true
    }

    override fun initWebView(webView: CWebView?) {
        super.initWebView(webView)
        viewModel.refreshLocation() {
            webView?.mAgentWeb?.urlLoader?.loadUrl(_url ?: "")
        }
    }

    override fun getUrl(): String? {
        return null
    }
}